package org.maylove.wuziqi.pojo.history;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

@Table(name = "history")
@Entity
public class History {
    @Id
    @Column(name = "history_id")
    Long historyId;
    @Column(name = "user_id")
    Long userId;
    @Column(name = "result")
    Integer result;                 //  0失败1获胜
    @Column(name = "reason")
    Integer reason;                 //  0正常结束1认输
    @Column(name = "row_1")
    Integer row1;                   //  0白棋1黑棋
    @Column(name = "row_2")
    Integer row2;
    @Column(name = "row_3")
    Integer row3;
    @Column(name = "row_4")
    Integer row4;
    @Column(name = "row_5")
    Integer row5;
    @Column(name = "row_6")
    Integer row6;
    @Column(name = "row_7")
    Integer row7;
    @Column(name = "row_8")
    Integer row8;
    @Column(name = "row_9")
    Integer row9;
    @Column(name = "row_10")
    Integer row10;
    @Column(name = "row_11")
    Integer row11;
    @Column(name = "row_12")
    Integer row12;
    @Column(name = "row_13")
    Integer row13;
    @Column(name = "row_14")
    Integer row14;
    @Column(name = "row_15")
    Integer row15;


    public History() {
    }

    public History(Long historyId, Long userId, Integer result, Integer reason, Integer row1, Integer row2, Integer row3, Integer row4, Integer row5, Integer row6, Integer row7, Integer row8, Integer row9, Integer row10, Integer row11, Integer row12, Integer row13, Integer row14, Integer row15) {
        this.historyId = historyId;
        this.userId = userId;
        this.result = result;
        this.reason = reason;
        this.row1 = row1;
        this.row2 = row2;
        this.row3 = row3;
        this.row4 = row4;
        this.row5 = row5;
        this.row6 = row6;
        this.row7 = row7;
        this.row8 = row8;
        this.row9 = row9;
        this.row10 = row10;
        this.row11 = row11;
        this.row12 = row12;
        this.row13 = row13;
        this.row14 = row14;
        this.row15 = row15;
    }

    public Long getHistoryId() {
        return historyId;
    }

    public void setHistoryId(Long historyId) {
        this.historyId = historyId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public Integer getReason() {
        return reason;
    }

    public void setReason(Integer reason) {
        this.reason = reason;
    }

    public Integer getRow1() {
        return row1;
    }

    public void setRow1(Integer row1) {
        this.row1 = row1;
    }

    public Integer getRow2() {
        return row2;
    }

    public void setRow2(Integer row2) {
        this.row2 = row2;
    }

    public Integer getRow3() {
        return row3;
    }

    public void setRow3(Integer row3) {
        this.row3 = row3;
    }

    public Integer getRow4() {
        return row4;
    }

    public void setRow4(Integer row4) {
        this.row4 = row4;
    }

    public Integer getRow5() {
        return row5;
    }

    public void setRow5(Integer row5) {
        this.row5 = row5;
    }

    public Integer getRow6() {
        return row6;
    }

    public void setRow6(Integer row6) {
        this.row6 = row6;
    }

    public Integer getRow7() {
        return row7;
    }

    public void setRow7(Integer row7) {
        this.row7 = row7;
    }

    public Integer getRow8() {
        return row8;
    }

    public void setRow8(Integer row8) {
        this.row8 = row8;
    }

    public Integer getRow9() {
        return row9;
    }

    public void setRow9(Integer row9) {
        this.row9 = row9;
    }

    public Integer getRow10() {
        return row10;
    }

    public void setRow10(Integer row10) {
        this.row10 = row10;
    }

    public Integer getRow11() {
        return row11;
    }

    public void setRow11(Integer row11) {
        this.row11 = row11;
    }

    public Integer getRow12() {
        return row12;
    }

    public void setRow12(Integer row12) {
        this.row12 = row12;
    }

    public Integer getRow13() {
        return row13;
    }

    public void setRow13(Integer row13) {
        this.row13 = row13;
    }

    public Integer getRow14() {
        return row14;
    }

    public void setRow14(Integer row14) {
        this.row14 = row14;
    }

    public Integer getRow15() {
        return row15;
    }

    public void setRow15(Integer row15) {
        this.row15 = row15;
    }
}
